package jnpf.message;

import jnpf.message.fallback.SendMsgConfigApiFallback;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 调用发送配置Api
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司（https://www.jnpfsoft.com）
 * @date 2021-03-24
 */
@FeignClient(name = FeignName.MESSAGE_SERVER_NAME, fallback = SendMsgConfigApiFallback.class,path = "/SendMessageConfig")
public interface SendMsgConfigApi {

    /**
     * 修改发送配置usedId
     *
     * @param id
     * @return
     */
    @PostMapping("/updateUsed")
    void updateUsed(@RequestParam("id") String id,@RequestParam("idList") List<String> idList);

}
